XMLCallback(event)
Callback called by modelit.webserver.Server object for generating an XML response.
event | modelit.webserver.HttpExchange | with the request data and methods to generate a response. |
No output, a response with an XML string is return to the client.
server = modelit.web.server.Server('localhost', 8081, @XMLCallback).start() % Open a webbrowser and type: http://localhost:8081 in the address bar % Now an xml message appears in the browser. Copyright 2020 Modelit, www.modelit.nl